using System;
using System.Collections.Generic;
using System.Configuration;

using System.Windows.Forms;

namespace Data_Transfer_App
{
    static class StartUp
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            //if (args.Length > 0)
            //{
                
            //    string SourceServer = ConfigurationSettings.AppSettings["SourceServer"];
            //    string SourceDB = ConfigurationSettings.AppSettings["SourceDB"];
            //    string TargetServer = ConfigurationSettings.AppSettings["TargetServer"];
            //    string TargetDB = ConfigurationSettings.AppSettings["TargetDB"];
            //    string TargetTable = ConfigurationSettings.AppSettings["TargetTable"];
            //    string TargetValues = ConfigurationSettings.AppSettings["TargetValues"];
            //    string TargetWHERE = ConfigurationSettings.AppSettings["TargetWHERE"];

            //    foreach(string ID in TargetValues.Split(new char[]{','},StringSplitOptions.RemoveEmptyEntries))
            //    {
            //        Main AutoRun = new Main();
            //        AutoRun.txtTable.Text = TargetTable;
            //        AutoRun.txtServer.Text = SourceServer;
            //        AutoRun.txtDataBase.Text=SourceDB;
            //        AutoRun.txtWhere.Text = string.Format(TargetWHERE, ID);
            //        AutoRun.btexecute_Click(null, null);
            //        AutoRun.Close();


            //    }

            //}
            //else
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new Main());
            }
        }
    }
}
